package com.yiquan.chat.client;

import entity.Result;
import entity.StatusCode;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author Tyrone
 * @date 2021/12/28 2:16
 */
@FeignClient("yiquan-user")
public interface UserClient {

    @RequestMapping(value = "/user/getUserByUserId", method = RequestMethod.GET)
    public Result findByUserId(@RequestParam Long userId);

}

